package com.qf.spring005.dao;

import com.qf.spring005.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    public List<User> getAllUsers();

    /**
     * 查询用户信息，根据用户id
     * @param userID
     * @return
     */
    User getUserById(@Param("userID") Integer userID);

    /**
     * 更新用户账户余额a
     * @param userID
     * @param amount
     */
    void updateUserAmount(@Param("userID") Integer userID,@Param("amount") int amount);
}
